/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controlador;

import logica.ModuloAltaPersona;
import modelo.Seccion;
import vista.panel.JPanelAltaPersona;

/**
 *
 * @author Elias Mendoza
 */
public class ControladorJPanelAltaPersona {
  public final JPanelAltaPersona panel;
  ModuloAltaPersona modulo;

  public ControladorJPanelAltaPersona(JPanelAltaPersona panel) {
    this.panel = panel;
  }
  
  public void llenaComboSecciones(){
    modulo = new ModuloAltaPersona(this);
    modulo.setTarea(1);
    Thread hilo= new Thread(modulo);   
    hilo.start();
  }
  public void llenaComboAmigosBySeccion(){
    modulo = new ModuloAltaPersona(this);
    modulo.setTarea(2);
    Thread hilo= new Thread(modulo);   
    hilo.start();
  }
  public void registrarPersona(){
    modulo = new ModuloAltaPersona(this);
    modulo.setTarea(3);
    Thread hilo = new Thread(modulo);
    hilo.start();
  }
  
}
